package ioc

import (
	"github.com/spf13/viper"
	"go-admin/server/internal/service/oauth2/wechat"
)

func InitWechat() wechat.Service {
	config := viper.GetStringMapString("wechat")
	appid := config["appid"]
	appSecret := config["appsecret"]
	return wechat.NewService(appid, appSecret)
}
